Set up Google Analytics
- Go to Google Analytics and sign in with your Google account.
- Click on Start measuring to begin creating a new account.
- Enter your Account Name and configure data sharing settings based on your preferences.
- Create a property by entering a Property Name (usually your website name), selecting your time zone and currency.
- Choose a platform (Web, Android, or iOS) — for websites, select Web.
- Enter your website URL and stream name. Make sure to choose the correct protocol (https:// if your site uses SSL).
- Click Create Stream to generate your Measurement ID (starts with
G-
).
- Copy the Global Site Tag (gtag.js) script provided and paste it into the
<head>
section of every page you want to track.
Tools:
Google Analytics, Google Tag Manager (optional for more advanced setups)